/*
 * Copyright (c) 2018 maoyan.com
 * All rights reserved.
 *
 */
package com.darren.euc.repository;

import com.darren.euc.entity.ActivityMemberRel;
import com.darren.euc.entity.Member;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 在这里编写类的功能描述
 *
 * @author fangwenhao
 * @created 2018/3/14
 */
public interface ActivityMemberRelRepository extends JpaRepository<ActivityMemberRel,Long>{

    Page<ActivityMemberRel> findByActivityIdAndMemberIdIn(Long acId, List<Long> memId, Pageable pageable);

    List<ActivityMemberRel> findByMemberIdAndStatusIn(Long memId, List<Integer> statuses);

    List<ActivityMemberRel> findByMemberId(Long memId);

    ActivityMemberRel findByActivityIdAndMemberId(Long activityId, Long memberId);
}
